//
//  OMTNavigationBar.h
//  OMTUIKit
//
//  Created by 昭荣伊 on 2018/7/30.
//

#import <UIKit/UIKit.h>

@interface OMTNavigationBar : UIView

@property (nonatomic, copy) NSString *title;

@property (nonatomic, strong) UIColor *titleColor;

@property (nonatomic, strong) UIFont *titleFont;

@property (nonatomic, strong) UIColor *barBackgroundColor;

@property (nonatomic, strong) UIImage *barBackgroundImage;

@property (nonatomic, strong) UIView *titleView;

@property (nonatomic, strong) UIButton *leftButton;

@property (nonatomic, strong) UIButton *rightButton;
// 点击左侧按钮
@property (nonatomic, copy) void(^clickLeftBlock)(id sender);
// 点击右侧按钮
@property (nonatomic, copy) void(^clickRightBlock)(id sender);

+ (instancetype)navigationBar;

#pragma mark - 导航栏样式
- (void)omt_setBottomLineHidden:(BOOL)hidden;

- (void)omt_setBackgroundAlpha:(CGFloat)alpha;

- (void)omt_setTintColor:(UIColor *)color;

#pragma mark - 左侧按钮

- (void)omt_setLeftButtonWithImage:(UIImage *)image;

- (void)omt_setLeftButtonWithImage:(UIImage *)image highlightedImage:(UIImage *)highlightedImage;

- (void)omt_setLeftButtonWithTitle:(NSString *)title;

- (void)omt_setLeftButtonWithTitle:(NSString *)title titleColor:(UIColor *)titleColor;

#pragma mark - 右侧按钮

- (void)omt_setRightButtonWithImage:(UIImage *)image;

- (void)omt_setRightButtonWithImage:(UIImage *)image highlightedImage:(UIImage *)highlightedImage;

- (void)omt_setRightButtonWithTitle:(NSString *)title;

- (void)omt_setRightButtonWithTitle:(NSString *)title titleColor:(UIColor *)titleColor;

@end
